﻿using System.Text;

namespace msilgc.cbuilder.CSyntaxTree
{
    internal class GotoStatement : ICStatement {
        public string TargetLabel { get; set; }
        public GotoStatement(string target) {
            TargetLabel = target;
        }

        public void Emit(StringBuilder builder) {
            builder.Append("goto ");
            builder.Append(TargetLabel);
            builder.AppendLine(";");
        }
    }
}